package com.liunian.generator.dto;

/**
 *@ClassName BaseResponse
 *@Author banjuanliunian
 *@Date 2020/11/12 9:53
 */
public class BaseResponse {
    private int status = 200;
    private String message;
    private long srvTime = System.currentTimeMillis();
    public static BaseResponse INS(int status, String message) {
        return new BaseResponse(status, message);
    }

    public BaseResponse(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public BaseResponse status(int status){
        this.status = status;
        return this;
    }
    public BaseResponse message(String message){
        this.message= message;
        return this;
    }

    public BaseResponse() {
    }
    public Long getSrvTime() {
        return srvTime;
    }

    public void setSrvTime(Long srvTime) {
        this.srvTime = srvTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


}